package com.zm.demo.sc.sb.config;

import com.zm.demo.sc.sb.resolver.MyArgumentResolver;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.method.support.HandlerMethodArgumentResolver;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

import java.util.List;

/**
 * @author zoum
 * @create 2019/10/29 11:13
 */
@Configuration
public class MvcConfig implements WebMvcConfigurer{

    @Override
    public void addArgumentResolvers(List<HandlerMethodArgumentResolver> resolvers) {
        MyArgumentResolver argumentResolver = new MyArgumentResolver();
        resolvers.add(argumentResolver);
    }
}
